home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: wkdugan@ix.netcom.com (Bill Dugan)
- Newsgroups: comp.lang.c++
- Subject: Re: [Q] Best way to "define" flag values?
- Date: Sun, 21 Jan 1996 19:07:13 GMT
- Organization: Netcom
- Message-ID: <4du2ug$nqt@ixnews8.ix.netcom.com>
- References: <marnoldDLIv9w.1s4@netcom.com>
- NNTP-Posting-Host: lax-ca22-16.ix.netcom.com
- X-NETCOM-Date: Sun Jan 21 11:08:09 AM PST 1996
- X-Newsreader: Forte Free Agent 1.0.82
-
- marnold@netcom.com (Matt Arnold) wrote:
-
- snip
-
- >However, I have never quite found a good substitute for declaring
- >values for flags. Passing flags to a function, for instance, is
- >a very common construct, and it's typically arranged like so...
-
- > #define FLAG_A 0x0001
- > #define FLAG_B 0x0010
- > #define FLAG_C 0x0100
-
- snip
-
- Look up bit fields in your C or C++ reference.
-
-